﻿@model Web.ViewModels.AddNewsForm  
@{
    ViewBag.Title = "Добавить новость";
}

<h2>Добавить новость</h2>

@using (Html.BeginForm("Add", "News", FormMethod.Post))
{
    <fieldset>
		@Html.LabelFor(x => x.Title, "Заголовок")<br/>
		@Html.TextBoxFor(x => x.Title, new { @class = "requiredField addNewsTitle" })<br/>
		@Html.ValidationMessageFor(x => x.Title)
		<br />
		@Html.LabelFor(x => x.ShortContent, "Краткое содержание")<br/>
		@Html.TextAreaFor(x => x.ShortContent, new { @class = "requiredField addNewsShortContent", rows=3 })<br/>
		@Html.ValidationMessageFor(x => x.ShortContent)
        <br />
		@Html.LabelFor(x => x.Content, "Cодержание")<br/>
		@Html.TextAreaFor(x => x.Content, new { @class = "requiredField addNewsContent", rows = 20 })<br/>
		@Html.ValidationMessageFor(x => x.Content)
        <br/>
	</fieldset>
	<div id="errorMessage" class="errorMessage"></div>
	@Html.SubmitButton(null, "Сохранить", new { @class = "submitButton" })
}